-- GENERATED SPELL FOR [Lashh'an Matriarch] --


function spell0_20113(pUnit, Event) --@Impending Doom,n/a--
pUnit:FullCastSpellOnTarget(37579,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20113', 30000, 1)
end

function spell1_20113(pUnit, Event) --@Shadow Bolt,n/a--
pUnit:FullCastSpellOnTarget(9613,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20113', 3000, 1)
end

function spell2_20113(pUnit, Event) --@Shadow Mend,Heal--
pUnit:FullCastSpellOnTarget(34110,pUnit)
pUnit:RegisterEvent('Sorts_20113', 2500, 1)
end

function Sorts_20113(pUnit, Event)
local choix_sorts_20113 = math.random(0, 2)
if choix_sorts_20113 == 0 then
pUnit:RegisterEvent('spell0_20113', 1, 1)
end
if choix_sorts_20113 == 1 then
pUnit:RegisterEvent('spell1_20113', 1, 1)
end
if choix_sorts_20113 == 2 then
pUnit:RegisterEvent('spell2_20113', 1, 1)
end
end

function mob20113_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_20113', math.random(1500, 3000), 1)
end

function mob20113_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20113_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20113_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(20113, 1, 'mob20113_Action')
RegisterUnitEvent(20113, 2, 'mob20113_Leave')
RegisterUnitEvent(20113, 3, 'mob20113_Kill')
RegisterUnitEvent(20113, 4, 'mob20113_Die')
